package com.ruoyi.pg.pensionProject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.pg.pensionProject.domain.PgRoleProject;
import com.ruoyi.pg.pensionProject.vo.PgRoleProjectVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色项目关联Mapper接口
 *
 * @author Ming
 * @date 2025-09-09
 */
public interface PgRoleProjectMapper extends BaseMapper<PgRoleProject> {

    Page<PgRoleProjectVo> queryList(Page<?> page, @Param("entity") PgRoleProjectVo entity);

    List<PgRoleProjectVo> queryList(@Param("entity") PgRoleProjectVo entity);

    List<String> getIds(@Param("entity") PgRoleProjectVo entity);

    List<Long> getProjectIds(@Param("roleId") List<Long> roleId);

    PgRoleProjectVo queryById(@Param("id") Long id);

    int deleteByRoleIdInt(@Param("roleId") Long roleId);
}
